﻿using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Yuebon.Infrastructure;

namespace Yuebon.Shop.Models
{
    /// <summary>
    /// 会员等级表，数据实体对象
    /// </summary>
    [Table("Shop_MemberGrades")]
    [Serializable]
    public class MemberGrades : ICreationAudited, IModificationAudited, IDeleteAudited
    {
        /// <summary>
        /// 主键
        /// </summary>
        [MaxLength(50)]
        [ExplicitKey]
        public virtual string Id
        {
            get;
            set;
        }
        /// <summary>
        /// 等级名称
        /// </summary>		
        public virtual string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 描述
        /// </summary>		
        public virtual string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 积分
        /// </summary>		
        public virtual int Points
        {
            get;
            set;
        }
        /// <summary>
        /// 是否默认
        /// </summary>		
        public virtual bool IsDefault
        {
            get;
            set;
        }
        /// <summary>
        /// 折扣
        /// </summary>		
        public virtual int Discount
        {
            get;
            set;
        }
        /// <summary>
        /// 删除标志
        /// </summary>		
        public virtual bool? DeleteMark
        {
            get;
            set;
        }
        /// <summary>
        /// 有效标志
        /// </summary>		
        public virtual bool? EnabledMark
        {
            get;
            set;
        }
        /// <summary>
        /// 创建日期
        /// </summary>		
        public virtual DateTime? CreatorTime
        {
            get;
            set;
        }
        /// <summary>
        /// 创建用户主键
        /// </summary>		
        public virtual string CreatorUserId
        {
            get;
            set;
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>		
        public virtual DateTime? LastModifyTime
        {
            get;
            set;
        }
        /// <summary>
        /// 最后修改用户
        /// </summary>		
        public virtual string LastModifyUserId
        {
            get;
            set;
        }
        /// <summary>
        /// 删除时间
        /// </summary>		
        public virtual DateTime? DeleteTime
        {
            get;
            set;
        }
        /// <summary>
        /// 删除用户
        /// </summary>		
        public virtual string DeleteUserId
        {
            get;
            set;
        }
    }
}
